//
//  CustomCell.m
//  cifNews_iphone
//
//  Created by  on 12-6-8.
//  Copyright (c) 2012年 __MyCompanyName__. All rights reserved.
//

#import "CustomCell.h"
@implementation CustomCell
@synthesize bookview,bookview1,colType;
- (void)dealloc{
    [bookview release];
    [bookview1 release];
    [super dealloc];
}

- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        // Initialization code
        bookview=[[BookView alloc] initWithFrame:CGRectMake(0, 0, 160, 180)];
        [self.contentView addSubview:bookview];
        if (!colType) {
            bookview1=[[BookView alloc] initWithFrame:CGRectMake(160, 0, 160, 180)];
            [self.contentView addSubview:bookview1];
        }
    }
    return self;
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated
{
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
